#nullable enable
using SqlSugar;

namespace FytSoa.Domain.Sys;

/// <summary>
/// 用户角色映射。
/// </summary>
[SugarTable("sys_user_role")]
public class SysUserRole
{
    [SugarColumn(ColumnName = "user_id", IsPrimaryKey = true)]
    public long UserId { get; set; }

    [SugarColumn(ColumnName = "role_id", IsPrimaryKey = true)]
    public long RoleId { get; set; }

    [SugarColumn(ColumnName = "assigned_at")]
    public DateTime AssignedAt { get; set; }
}
